//
//  SchoolRecruitlInfoView.m
//  edu
//
//  Created by Safeneeds-MacBookPro on 2013/12/10.
//  Copyright (c) 2013年 baobaodp. All rights reserved.
//

#import "SchoolRecruitlInfoView.h"
#import "Record.h"

@implementation SchoolRecruitlInfoView

@synthesize year;
@synthesize count;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void) setData:(Record *) record
{
    
    self.year.text =  [NSString stringWithFormat:@"%@年",[record getFieldValueByName:@"S_Ym"]];
    self.count.text = [NSString stringWithFormat:@"录取人数：%@    分数线：%@",[record getFieldValueByName:@"S_Cnt"],[record getFieldValueByName:@"S_Souce"]];
}

@end
